package com.youth.youthservice.service;

import com.youth.commonutils.R;
import com.youth.youthservice.entity.EduVideo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.youth.youthservice.entity.chapter.VideoVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 课程视频 服务类
 * </p>
 *
 * @author CM
 * @since 2023-4-30
 */
public interface EduVideoService extends IService<EduVideo> {

    /*章节id获取对应小节Video*/
    List<VideoVo> GetVideoVoList(String courseId,String chapterId);

    /*为章节添加新小结*/
    R insert(EduVideo video);

    /*根据章节Id删除对应小结*/
    void deleteByChapterId(String chapterId);

    /*删除视频后更新小节信息*/
    R updateSourceVideo(String id);

    /*根据小节id删除小节和其中的视频*/
    R removeVideo(String VideoId);


    /*根据vid获取videoId和ali视频凭证*/
    R getVideoAsc(String videoId);

    /*根据vid获取阿里云视频播放地址*/
    R getPlayUrl(String videoId);
}
